﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using System.Data.Sql;
using SQLExecute;



/// <summary>
/// Summary description for Report
/// </summary>
public class Report
{
    DataSet ds;
	public Report()
	{
		//
		// TODO: Add constructor logic here
		//
	}
    private DateTime _from;
    private DateTime _to;
    public DateTime From
    {
        set { _from = value; }
        get { return _from; }
    }
    public DateTime To
    {
        set { _to = value; }
        get { return _to; }
    }


    public DataSet Info_Salary()
    {

        ds = SqlHelper.ExecuteDataset(Common.strConnect, "Report_Salary_Min_And_Max", 
                                        new object[] {_from.ToShortDateString(),_to.ToShortDateString() });

        return ds;
    }
}
